
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel=stylesheet href='include/hoj.css' type='text/css'>
</head>
<body>
<center>
<div style="width:90%; text-align:left">
<img src="image/logo.png"/>
</div>
<table width=96%> 
	<tr align="center" class='hd' valign="top">
				<th><a href="faqs.php">F.A.Qs</a></th>
		<th><a href="./bbs.php">Web Board</a></th>
		<th><a href="./">Home</a></th>
		<th><a href="./problemset.html">ProblemSet</a></th>
		<th><a href="./status.php">Status</a></th>
		<th><a href="./ranklist.php">Ranklist</a></th>
		<th><a href="./contest.php">Contest</a></th>
		<th><a href=loginpage.php>Login</a></th><th><a href=registerpage.php>Register</a></th>	</tr>
</table>
</center>
<center>
<div class="notice">
	<div>
		<B>Notice:</B>鉴于种种原因，本OJ自下周星期一（3月5号）开始不再全面开放，请各位做好善后事宜，谢谢合作。	</div>
</div>
</center>
</div>
<title>Problem 2232. -- 过敏症测试 -- 衡阳八中OJ离线版-2012-02-29</title><center><h2>2232: 过敏症测试</h2><span class=green>Time Limit: </span>10 Sec&nbsp;&nbsp;<span class=green>Memory Limit: </span>256 MB<br><span class=green>Submit: </span>11&nbsp;&nbsp;<span class=green>Solved: </span>7<br>[<a href='submitpage.php?id=2232'>Submit</a>][<a href='problemstatus.php?id=2232'>Status</a>][<a href='bbs.php?id=2232'>Discuss</a>]</center><h2>Description</h2><div class=content><div style="text-indent: 28.5pt"><span style="font-size: 12pt">作为一个志愿者，你将接受一个过敏症测试。测试的目标是检测出所有对你有刺激作用的过敏原。每一种过敏原有一个特定的</span><span style="font-size: 12pt">D</span><span style="font-size: 12pt">，表示你将持续</span><span style="font-size: 12pt">D</span><span style="font-size: 12pt">天产生过敏反应当且仅当你对这种过敏原过敏。过敏反应可以看做在你接触过敏原的一瞬间开始。测试的安排表上每天有两个事件。</span></div>
<div style="margin: 0cm 0cm 0pt 46.5pt; text-indent: -18pt"><span style="font-size: 12pt">1．</span><span style="font-size: 12pt">在每天早上</span><span style="font-size: 12pt">8</span><span style="font-size: 12pt">点，你将接触至多一个过敏原。</span></div>
<div style="margin: 0cm 0cm 0pt 46.5pt; text-indent: -18pt"><span style="font-size: 12pt">2．</span><span style="font-size: 12pt">在每天晚上</span><span style="font-size: 12pt">8</span><span style="font-size: 12pt">点，你将接受关于过敏反应的检测。</span></div>
<div>显然，假如你同时有因为两个以上的过敏原刺激产生的过敏反应，你是分辨不了关于它们的信息的。</div>
<div style="text-indent: 27pt"><span style="font-size: 12pt">在已经给定了每种过敏原的</span><span style="font-size: 12pt">D</span><span style="font-size: 12pt">值的条件下，你想用尽量少的天数结束这个实验&mdash;&mdash;注意，实验计划不能临时改变，必须预先确定，也就是说你不能根据之前是否产生了过敏反应来决定之后是否安排接触过敏原。</span></div>
<div style="text-indent: 24pt"></div></div><h2>Input</h2><div class=content><p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 24pt"><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第一行包括一个整数</span><span lang="EN-US" style="font-size: 12pt"><font face="Times New Roman">k(1&lt;=k&lt;=20),</font></span><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示需要测试的过敏原数量。接下来的</span><span lang="EN-US" style="font-size: 12pt"><font face="Times New Roman">K</font></span><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">行，每行包括一个数字</span><span lang="EN-US" style="font-size: 12pt"><font face="Times New Roman">D</font></span><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">（</span><span lang="EN-US" style="font-size: 12pt"><font face="Times New Roman">1&lt;=D&lt;=7</font></span><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">），表示这种过敏症持续的天数。</span><span lang="EN-US" style="font-size: 12pt"><o:p></o:p></span></p></div><h2>Output</h2><div class=content><p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 24pt"><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">只有一个整数，表示你的实验计划需要的天数。</span><span lang="EN-US" style="font-size: 12pt"><o:p></o:p></span></p>
<p><span style="font-size: 12pt; font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">一个测试计划可以结束，必须在一个你不再有任何过敏症状的早晨。</span></p></div><h2>Sample Input</h2>
			<div class=content><span class=sampledata>3<br />
3<br />
2<br />
2<br />
</span></div><h2>Sample Output</h2>
			<div class=content><span class=sampledata>5</span></div><h2>HINT</h2>
			<div class=content><p></p></div><h2>Source</h2>
			<div class=content><p><a href='problemset.html?search='></a></p></div><center>[<a href='submitpage.php?id=2232'>Submit</a>][<a href='problemstatus.php?id=2232'>Status</a>][<a href='bbs.php?id=2232'>Discuss</a>]</center>﻿<br>

<a href="./"><span class=red>HOME</span></a>
<a href="javascript:history.go(-1)"><span class=red>Back</span></a>

<hr>
<center>
	<div class="footer">
			<a href=setlang.php?lang=ko>한국어</a>&nbsp;
		<a href=setlang.php?lang=cn>中文</a>&nbsp;
		<a href=setlang.php?lang=fa>فارسی</a>&nbsp;
		<a href=setlang.php?lang=en>English</a>&nbsp;
		<a href=setlang.php?lang=th>ไทย</a>
	<br>		<div>版权所有 &copy;2008-2012 WaterPark Organization. | <script src="http://s21.cnzz.com/stat.php?id=2982771&web_id=2982771" language="JavaScript"></script>
</div>
		<div>Based on opensource project <a href="http://hustoj.googlecode.com">hustoj</a>.</div>
	</div>
</center>
</body>
</html>
